<?php
require_once 'simpletest/unit_tester.php';
require_once 'simpletest/reporter.php';
require_once __DIR__ . '/../StartTimeEndTimeController.php';
require_once APPLICATION_PATH . '/models/Names/Names.php';

class TimeTest extends UnitTestCase
{
	const CRLF = "\r\n";
	public function Test1100()
	{
		$_REQUEST[Names::STARTTIMEHOUR] = 8;
		$_REQUEST[Names::STARTTIMEMINUTE]=30;
		$_REQUEST[Names::ENDTIMEHOUR]=9;
		$_REQUEST[Names::ENDTIMEMINUTE]=0;
		$_REQUEST[Models_Calendar_Controller::KEY_ID] = '1347054746.8928';
		$obj = new Components_StartTimeEndTimeController();
		$sHtml = $obj->fetchStartHour();
		echo $sHtml;
		echo self::CRLF;
		echo $obj->fetchStartMinute();
		echo self::CRLF;
		echo $obj->fetchEndHour();
		echo self::CRLF;
		echo $obj->fetchEndMinute();
	}
}